package com.m3839.sdk.common.env2.platform;

import android.util.Pair;

import com.m3839.sdk.common.env.EnvConfig;
import com.m3839.sdk.common.env2.Env;
import com.m3839.sdk.common.env2.IPlatformApi;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ChenBaoyang
 * @description: KuaiBaoPlatformApi
 * @date 2021/11/6 10:26
 */
public class KuaiBaoPlatformApi extends IPlatformApi {

    /** 快爆平台的接口-正式地址 */
    protected static final String SDK_HYKB_HOST = "https://api.3839app.com/";

    /** 快爆平台的接口-OT地址 */
    protected static final String SDK_HYKB_HOST_OT = "http://ot.newsapp.5054399.com/";

    /** 快爆平台的接口-测试地址 */
    protected static final String SDK_HYKB_HOST_TEST = "http://t.newsapp.5054399.com/";

    public static Map<Integer, EnvConfig> envConfigMap = new HashMap<>();

    static {
        envConfigMap.put(Env.ENV_TEST, new EnvConfig(SDK_HYKB_HOST_TEST, null, null));
        envConfigMap.put(Env.ENV_ONLINE_TEST, new EnvConfig(SDK_HYKB_HOST_OT, null, null));
        envConfigMap.put(Env.ENV_OFFICIAL, new EnvConfig(SDK_HYKB_HOST, null, null));
    }

    @Override
    public EnvConfig getApi(int env) {
        return envConfigMap.get(env);
    }
}
